﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000199 RID: 409
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class CellMonster : IMessage<CellMonster>, IMessage, IEquatable<CellMonster>, IDeepCloneable<CellMonster>, IBufferMessage
	{
		// Token: 0x1700055F RID: 1375
		// (get) Token: 0x06001265 RID: 4709 RVA: 0x00034D6C File Offset: 0x00032F6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<CellMonster> Parser
		{
			get
			{
				return CellMonster._parser;
			}
		}

		// Token: 0x17000560 RID: 1376
		// (get) Token: 0x06001266 RID: 4710 RVA: 0x00034D73 File Offset: 0x00032F73
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return CellMonsterReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000561 RID: 1377
		// (get) Token: 0x06001267 RID: 4711 RVA: 0x00034D85 File Offset: 0x00032F85
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return CellMonster.Descriptor;
			}
		}

		// Token: 0x06001268 RID: 4712 RVA: 0x00034D8C File Offset: 0x00032F8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CellMonster()
		{
		}

		// Token: 0x06001269 RID: 4713 RVA: 0x00034D94 File Offset: 0x00032F94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CellMonster(CellMonster other) : this()
		{
			this.bossDecayId_ = other.bossDecayId_;
			this.monsterId_ = other.monsterId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600126A RID: 4714 RVA: 0x00034DC5 File Offset: 0x00032FC5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CellMonster Clone()
		{
			return new CellMonster(this);
		}

		// Token: 0x17000562 RID: 1378
		// (get) Token: 0x0600126B RID: 4715 RVA: 0x00034DCD File Offset: 0x00032FCD
		// (set) Token: 0x0600126C RID: 4716 RVA: 0x00034DD5 File Offset: 0x00032FD5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BossDecayId
		{
			get
			{
				return this.bossDecayId_;
			}
			set
			{
				this.bossDecayId_ = value;
			}
		}

		// Token: 0x17000563 RID: 1379
		// (get) Token: 0x0600126D RID: 4717 RVA: 0x00034DDE File Offset: 0x00032FDE
		// (set) Token: 0x0600126E RID: 4718 RVA: 0x00034DE6 File Offset: 0x00032FE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MonsterId
		{
			get
			{
				return this.monsterId_;
			}
			set
			{
				this.monsterId_ = value;
			}
		}

		// Token: 0x0600126F RID: 4719 RVA: 0x00034DEF File Offset: 0x00032FEF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as CellMonster);
		}

		// Token: 0x06001270 RID: 4720 RVA: 0x00034DFD File Offset: 0x00032FFD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(CellMonster other)
		{
			return other != null && (other == this || (this.BossDecayId == other.BossDecayId && this.MonsterId == other.MonsterId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001271 RID: 4721 RVA: 0x00034E3C File Offset: 0x0003303C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BossDecayId != 0U)
			{
				num ^= this.BossDecayId.GetHashCode();
			}
			if (this.MonsterId != 0U)
			{
				num ^= this.MonsterId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001272 RID: 4722 RVA: 0x00034E94 File Offset: 0x00033094
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001273 RID: 4723 RVA: 0x00034E9C File Offset: 0x0003309C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001274 RID: 4724 RVA: 0x00034EA8 File Offset: 0x000330A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BossDecayId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.BossDecayId);
			}
			if (this.MonsterId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.MonsterId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001275 RID: 4725 RVA: 0x00034F00 File Offset: 0x00033100
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BossDecayId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BossDecayId);
			}
			if (this.MonsterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MonsterId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001276 RID: 4726 RVA: 0x00034F58 File Offset: 0x00033158
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CellMonster other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BossDecayId != 0U)
			{
				this.BossDecayId = other.BossDecayId;
			}
			if (other.MonsterId != 0U)
			{
				this.MonsterId = other.MonsterId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001277 RID: 4727 RVA: 0x00034FA8 File Offset: 0x000331A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001278 RID: 4728 RVA: 0x00034FB4 File Offset: 0x000331B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.MonsterId = input.ReadUInt32();
					}
				}
				else
				{
					this.BossDecayId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400079E RID: 1950
		private static readonly MessageParser<CellMonster> _parser = new MessageParser<CellMonster>(() => new CellMonster());

		// Token: 0x0400079F RID: 1951
		private UnknownFieldSet _unknownFields;

		// Token: 0x040007A0 RID: 1952
		public const int BossDecayIdFieldNumber = 1;

		// Token: 0x040007A1 RID: 1953
		private uint bossDecayId_;

		// Token: 0x040007A2 RID: 1954
		public const int MonsterIdFieldNumber = 13;

		// Token: 0x040007A3 RID: 1955
		private uint monsterId_;
	}
}
